The functions in this section provide a user interface for instrument selection and presenting copyright information.
The NAPickInstrument function presents a user interface for picking an instrument.
pascal ComponentResult NAPickInstrument(
NoteAllocator na,
ModalFilterUPP filterProc,
StringPtr prompt,
ToneDescription *sd,
unsigned long flags,
long refCon,
long reserved1,
long reserved2)
The flags values limit which instruments appear within the dialog box. If the kPickDontMix flag is set, the dialog does not display a mix of synthesizer part types. For example, if the current instrument is a drum, only available drums appear in the dialog. The kPickSameSynth flag allows selections only within the current synthesizer. The kPickUserInsts flag allows user modifiable instruments to appear.
The NAPickEditInstrument function presents a user interface for changing the instrument in a live note channel or modifying an atomic instrument.
extern pascal ComponentResult NAPickEditInstrument(
NoteAllocator na,
ModalFilterUPP filterProc,
StringPtr prompt,
long refCon,
NoteChannel nc,
AtomicInstrument ai,
long flags)
The flags values limit which instruments appear within the dialog box. If the kPickDontMix flag is set, the dialog does not display a mix of synthesizer part types. For example, if the current instrument is a drum, only available drums appear in the dialog. The kPickSameSynth flag allows selections only within the current synthesizer. The kPickUserInsts flag allows user modifiable instruments to appear. If the kPickEditAllowPick flag is not set, no dialog appears.
The NAStuffToneDescription function initializes a tone description structure with the details of a General MIDI note channel.
pascal ComponentResult NAStuffToneDescription(
NoteAllocator na,
long gmNumber,
ToneDescription *td)
The NAPickArrangement function displays a dialog to allow instrument selection.
pascal ComponentResult NAPickArrangement(
NoteAllocator na,
ModalFilterUPP filterProc,
StringPtr prompt,
long zero1,
long zero2,
Track t,
StringPtr songName)
The NACopyrightDialog function displays a copyright dialog with information specific to a music device.
pascal ComponentResult NACopyrightDialog(
NoteAllocator na,
PicHandle p,
StringPtr author,
StringPtr copyright,
StringPtr other,
StringPtr title,
ModalFilterUPP filterProc,
long refCon)